package com.zhuj.test;

import com.zhuj.core.annotation.NrpcService;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/1/8.
 */
@NrpcService()
public class SimpleServiceImpl implements SimpleService{

    public int fun1(int a, int b) {
        return a/b;
    }

    public Pojo fun2(Pojo pojo) {
        pojo.setX(1);
        pojo.setY(2.5);
        pojo.setName("fun2");
        List<String> strings = new ArrayList<String>();
        strings.add("abc");
        strings.add("def");
        pojo.setStrings(strings);
        Map<String,String> map = new HashMap<String, String>();
        map.put("key","value");
        pojo.setMap(map);
        return pojo;
    }
}
